package com.nexus.all.mongodb.repository;

import com.mongodb.client.result.UpdateResult;
import com.nexus.all.mongodb.model.MongoNoteHistory;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.core.query.Update;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface NoteHistoryRepository extends MongoRepository<MongoNoteHistory, String> {

    List<MongoNoteHistory> findByNoteId(Long noteId);

    int countByNoteId(Long noteId);
}
